home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
PROGNG_C
/
CFUNCTS.LZH
/
CARD.C
next >
Wrap
Text File
|
1986-12-30
|
515b
|
14 lines
#include <dos.h>
int card() /* determine type of card. (Color or Monochrome) */
{
struct { int ax,bx,cx,dx,si,di,ds,es; } sreg;
int axreg;
int86(0x0011,&sreg,&sreg); /* Interrupt 11x */
axreg = (sreg.ax & 0x0030); /* Test for color card. */
if (axreg == 0x0030)
return(0); /* Color Card. */
else
return(1); /* Monochrome Card. */
}